package com.itheima.inreader;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;

public class InReaderDemo {

    public static void main(String[] args) throws IOException {

        //public InputStreamReader(InputStream in)

        InputStreamReader inputStreamReader = new InputStreamReader(new FileInputStream("day11\\a.txt"));

        int a = -1;
        while ((a=inputStreamReader.read()) != -1){
            System.out.print((char) a);
        }

        inputStreamReader.close();
    }
}
